Skip to content

database support for PendingMgsUpdate for SP updates #8291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

davepacheco
Copy link
Collaborator

@davepacheco davepacheco commented Jun 6, 2025

This is mostly code-complete, the test is updated, and it appears to work.

Depends on #8394.

TODO:

  • implement schema migration
  • cleanup -- the insertion code is really gross
  • I'd like to implement support for RoT updates too to make sure we're not missing something important that would require an annoying database migration to get past
  • fix "delete" path and add a test for it

@davepacheco davepacheco self-assigned this Jun 6, 2025
@davepacheco davepacheco changed the base branch from main to dap/rustfmt-bailout June 19, 2025 16:06
@davepacheco
Copy link
Collaborator Author

The cleanup really wanted a rustfmt pass, but rustfmt hasn't been working on this code path. Fixing that added a bunch of noise so I split that into #8394 and made this PR dependent on that one.

// TODO these need to be serialized to the database.
// See oxidecomputer/omicron#7981.
pending_mgs_updates: PendingMgsUpdates::new(),
pending_mgs_updates,
sleds: sled_configs,
parent_blueprint_id,
internal_dns_version,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's below the diff, but:

a) I think we also need to update blueprint_delete, right?
b) I'm surprised we don't have any tests that caught this; do we need a test like we have for inventory that checks that deletion doesn't leave any leftovers behind in any of the bp_* tables?

Base automatically changed from dap/rustfmt-bailout to main June 23, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants